projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b315e1
)
build-sys: Add -Werror=switch
author
Colin Walters
<walters@verbum.org>
Wed, 13 Sep 2017 15:18:04 +0000
(11:18 -0400)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Wed, 13 Sep 2017 17:06:45 +0000
(17:06 +0000)
We use the "exhaustive enum" pattern (i.e. no `default:`) in some places so
we're forced to touch all users when adding cases.
Closes: #1167
Approved by: peterbaouoft
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 88dbc70977c01779dcab9faf00f505adc05371a3..114264b54f5f680ad0595ebd5fba726c8528753a 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-40,6
+40,7
@@
CC_CHECK_FLAGS_APPEND([WARN_CFLAGS], [CFLAGS], [\
-Werror=pointer-arith -Werror=init-self \
-Werror=missing-declarations \
-Werror=return-type \
+ -Werror=switch \
-Werror=overflow \
-Werror=int-conversion \
-Werror=parenthesis \